<template>
  <el-card class="count-card-today flex-center" :style="{ backgroundColor: color }">
    <div class="flex-col flex-center flex-1">
      <div class="font-600 text_1 color-blue">
        {{ value }}
      </div>
      <div class="text_2">{{ title }}</div>
    </div>
  </el-card>
</template>

<script lang="ts">
export default {
  props: {
    title: {
      type: String,
      default: "",
    },
    value: {
      type: Number,
      default: 0,
    },
    color: {
      type: String,
      default: "#fff",
    },
  },
};
</script>

<style lang="scss" scoped>
.count-card-today {
  height: 120px;
  border-radius: 5px;

  .text_1 {
    font-size: 25px;
  }

  .text_2 {
    font-size: 14px;
  }
}
</style>
